import React, { useState } from 'react';
import { Modal } from 'antd';
type Iprops = {
    isShow:boolean
    handleOk2:()=>void
    handleCancel2:()=>void
}
const Dialog2: React.FC<Iprops> = (props) => {
  const [isModalOpen, setIsModalOpen] = useState(false);
    let {isShow,handleOk2,handleCancel2} = props
  return (
    <>
      <Modal title="Basic Modal"  open={isShow} onOk={()=>handleOk2()} onCancel={()=>handleCancel2()} >
        <p>您确定要删除该条数据吗</p>
      </Modal>
    </>
  );
};

export default Dialog2;